package com.mysoft.gfyx.marketdevelop.controller;

import com.mysoft.framework.modeling.dataapi.LoadDataApi;
import com.mysoft.framework.modeling.dto.FieldsSetting;
import com.mysoft.framework.modeling.dto.ListDataResult;
import com.mysoft.framework.modeling.dto.LoadDataParams;
import com.mysoft.framework.mvc.api.Controller;
import com.mysoft.framework.rpc.annotation.PubAction;
import com.mysoft.framework.rpc.annotation.PubService;
import com.mysoft.framework.rpc.contants.RequestPrefix;
import com.mysoft.gfyx.marketdevelop.service.DeveloperCooperatorService;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

@PubService(value = "/cooperatorPub", prefix = RequestPrefix.PUB)
@Tag(name = "合作单位-PUB")
public class CooperatorPubController {
    @Resource
    private DeveloperCooperatorService developerCooperatorService;

    // 获取合作单位列表
    @PubAction(value = "/cooperatorList", method = RequestMethod.POST)
    public ListDataResult cooperatorList(@RequestBody LoadDataParams options) {
        return developerCooperatorService.loadData(options);
    }
}
